# yield语法：迭代器和生成器:优化存储


def get_data(): 
    for i in range(10000):
        yield i

gen = get_data()

next(gen)
next(gen)
next(gen)
print(next(gen))